<?php

namespace app\index\controller;
use think\Controller;

class hook extends Controller
{
    public function index()
    {

        $res = shell_exec("cd C:\phpstudy_pro\WWW\Tools\ &&  git fetch --all &&  git reset --hard origin/master && git pull origin master 2<&1  ");
        /*  exec ('C:\Program Files (x86)\Oray\SunLogin\SunloginClient\SunloginClient.exe');
             // $res= shell_exec("cd C:\phpstudy_pro\WWW\Tools\ &&  git pull origin master 2<&1 ");
          }
          //echo ROOT_PATH;*/

    }
}